﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <style >
        th{
            text-align :center ;
            width :200px;
            line-height :30px;
        }
        td{
            text-align :center;
        }
    </style>
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns ="false" OnRowEditing="GridView1_RowEditing" OnRowUpdating ="GridView1_RowUpdating" OnRowDeleting ="GridView1_RowDeleting" OnRowCancelingEdit="GridView1_RowCancelingEdit" >
        <Columns>
            <asp:BoundField DataField ="Id" HeaderText ="Id" HeaderStyle-Width="80px" />
            <asp:BoundField DataField ="Name" HeaderText ="用户名" />
            <asp:BoundField DataField ="password" HeaderText ="密码"/>
            <asp:BoundField DataField ="Remarks" HeaderText ="备注" />
            <asp:CommandField ShowCancelButton ="true" ShowDeleteButton ="true" ShowEditButton ="true" HeaderText ="操作" />
        </Columns>
    </asp:GridView>
    <br />
    <asp:Button runat ="server" ID ="Add" Text ="添加" OnClick ="Add_Click" />
</asp:Content>
